			{if PHPFOX_IS_AJAX && Phpfox::getLib('request')->get('theater') == 'true'}

			
			{elseif isset($sFeedType) &&  $sFeedType == 'view'}
			<div class="feed_share_custom">	
				{if Phpfox::isModule('share') && Phpfox::getParam('share.share_twitter_link')}
				<div class="feed_share_custom_block"><a href="http://twitter.com/share" class="twitter-share-button" data-url="{$aFeed.feed_link}" data-count="horizontal" data-via="{param var='feed.twitter_share_via'}">{phrase var='feed.tweet'}</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
				{/if}
				{if Phpfox::isModule('share') && Phpfox::getParam('share.share_google_plus_one')}
				<div class="feed_share_custom_block">
					<g:plusone href="{$aFeed.feed_link}" size="medium"></g:plusone>
					{literal}
					<script type="text/javascript">
					  (function() {
						var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
						po.src = 'https://apis.google.com/js/plusone.js';
						var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
					  })();
					</script>
					{/literal}
				</div>
				{/if}
				{if Phpfox::isModule('share') && Phpfox::getParam('share.share_facebook_like')}
				<div class="feed_share_custom_block">
					<iframe src="http://www.facebook.com/plugins/like.php?app_id=156226084453194&amp;href={if !empty($aFeed.feed_link)}{$aFeed.feed_link}{else}{url link='current'}{/if}&amp;send=false&amp;layout=button_count&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;width=90&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:140px; height:21px;" allowTransparency="true"></iframe>					
				</div>
				{/if}				
				<div class="clear"></div>
			</div>
			{/if}
			
			<ul>
				{*{if !Phpfox::getService('profile')->timeline()}
				{if !isset($aFeed.feed_mini)}
                                
				{if !empty($aFeed.feed_icon) && !Phpfox::isMobile()}
				<li><img src="{$aFeed.feed_icon}" alt="" /></li>
				{/if}
								
				{if $aFeed.privacy > 0 && ($aFeed.user_id == Phpfox::getUserId() || Phpfox::getUserParam('core.can_view_private_items'))}
				<li><div class="js_hover_title">{img theme='layout/privacy_icon.png' alt=$aFeed.privacy}<span class="js_hover_info">{$aFeed.privacy|privacy_phrase}</span></div></li>	
				{/if}
				{/if}
				{/if}*}
					
				{if Phpfox::isUser() && Phpfox::isModule('like') && isset($aFeed.like_type_id)}
				{if isset($aFeed.like_item_id)}
				{module name='like.link' like_type_id=$aFeed.like_type_id like_item_id=$aFeed.like_item_id like_is_liked=$aFeed.feed_is_liked}
				{else}
				{module name='like.link' like_type_id=$aFeed.like_type_id like_item_id=$aFeed.item_id like_is_liked=$aFeed.feed_is_liked}
				{/if}	
				
				{/if}
				
				{if Phpfox::isUser() 
					&& Phpfox::isModule('comment') 
					&& Phpfox::getUserParam('feed.can_post_comment_on_feed')
					&& (isset($aFeed.comment_type_id) && $aFeed.can_post_comment) 
					|| (!isset($aFeed.comment_type_id) && isset($aFeed.total_comment))
					}				
				<li>
					<a href="{$aFeed.feed_link}add-comment/" class="feed_action_link feed_link_comment {if (isset($sFeedType) && $sFeedType == 'mini') || (!isset($aFeed.comment_type_id) && isset($aFeed.total_comment))}{else}js_feed_entry_add_comment no_ajax_link{/if}">{if isset($aFeed.total_comment) && $aFeed.total_comment > 0}<span>{$aFeed.total_comment}</span>{/if}</a>
				</li>				
				
				{/if}	
                                {if isset($aFeed.type_id) && $aFeed.type_id == "survey"}
                                    {module name='survey.link' id=$aFeed.item_id}
				{elseif Phpfox::isModule('share') && !isset($aFeed.no_share)}
					{if $aFeed.privacy == '0'}
						{module name='share.link' type='feed' display='menu' url=$aFeed.feed_link title=$aFeed.feed_title sharefeedid=$aFeed.item_id sharemodule=$aFeed.type_id}
					{else}
						{module name='share.link' type='feed' display='menu' url=$aFeed.feed_link title=$aFeed.feed_title}
					{/if}
				{/if}                                
				{plugin call='feed.template_block_entry_2'}				
				{if Phpfox::isMobile() && ((defined('PHPFOX_FEED_CAN_DELETE')) || (Phpfox::getUserParam('feed.can_delete_own_feed') && $aFeed.user_id == Phpfox::getUserId()) || Phpfox::getUserParam('feed.can_delete_other_feeds'))}
				<li><span>&middot;</span></li>
				<li><a href="#" onclick="if (confirm(getPhrase('core.are_you_sure'))){l}$.ajaxCall('feed.delete', 'id={$aFeed.feed_id}{if isset($aFeedCallback.module)}&amp;module={$aFeedCallback.module}&amp;item={$aFeedCallback.item_id}{/if}', 'GET');{r} return false;">{phrase var='feed.delete'}</a></li>
				{/if}	
                                
			</ul>
                        {*
                        <ul class="feed_social_share">
                            <li class="feed_social_share_fb"><a target="_blank" href="http://www.facebook.com/share.php?u=<?php echo urldecode($this->_aVars['aFeed']['feed_link']); ?>"></a></li>
                            <li class="feed_social_share_tw"><a target="_blank" href="http://twitter.com/home?status=<?php echo urldecode($this->_aVars['aFeed']['feed_link']); ?>"></a></li>
                            <li class="feed_social_share_pi"><a target="_blank" href="http://pinterest.com/pin/create/button/?url=<?php echo urldecode($this->_aVars['aFeed']['feed_link']); ?>"></a></li>
                            <li class="feed_social_share_ln"><a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo urldecode($this->_aVars['aFeed']['feed_link']); ?>"></a></li>
                            <li class="feed_social_share_gp"><a target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=<?php echo urldecode($this->_aVars['aFeed']['feed_link']); ?>"></a></li>
                        </ul>*}
                        {if isset($aFeed.type_id) && $aFeed.type_id == 'marketplace'}
                        <ul class="market_place_map">
                            <li class="map_link">
                                <a href="#" onclick="showListingStoreMap('{$aFeed.item_id}','feed');return false;" class="js_feed_entry_location no_ajax_link"><img alt="Show map" src="{param var='core.path'}module/marketplace/static/image/map-icon.png"/></a>
                                <div id="js_feed_map_listing_{$aFeed.item_id}" class="map_store" style="display: none;">                    
                                    <div class="beeperNub"></div>
                                    <div id="js_feed_map_listing_content_{$aFeed.item_id}" class="js_map_content">
                                        <img style="margin: auto;" src="{param var='core.path'}theme/frontend/default/style/default/image/layout/loading.gif"/>
                                    </div>
                                 </div>
                            </li>
                        </ul>
                        {/if}
			<div class="clear"></div>		